package io.renren.modules.app.service;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import io.renren.modules.app.entity.ibps.RoleParty;

@Repository
public interface IRoleService extends JpaRepository<RoleParty, String> {

	@Query(value = "SELECT * FROM `ibps_party_role` WHERE ROLE_ALIAS_ = ?1", nativeQuery = true)
	RoleParty findByRoleAlias(String ROLE_ALIAS_);
}
